package com.example.excel;

import org.apache.poi.ss.util.CellRangeAddress;

public class MergeRegion {
    private int firstRow;
    private int lastRow;
    private int firstCol;
    private int lastCol;

    public MergeRegion(int firstRow, int lastRow, int firstCol, int lastCol) {
        this.firstRow = firstRow;
        this.lastRow = lastRow;
        this.firstCol = firstCol;
        this.lastCol = lastCol;
    }

    public CellRangeAddress toCellRangeAddress() {
        return new CellRangeAddress(firstRow, lastRow, firstCol, lastCol);
    }
}